package cycling.taxi.com.utils;

/**
 * Created by ytw on 2017/6/29.
 */

public class PowerUtils {
    public String Power(String xinghao,String vol){
        String  power="";
        if(xinghao.equals("72V")){
            power=String.valueOf((int) ((Double.parseDouble(vol)-60.0)/12*100));
        }
        if(xinghao.equals("60V")){
            power=String.valueOf((int) ((Double.parseDouble(vol)-48.0)/12*100));
        }
        if(xinghao.equals("48V")){
            power=String.valueOf((int) ((Double.parseDouble(vol)-36.0)/12*100));
        }
        return power;
    }

}
